package com.th.therp.pojo.emtity;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MaterialBrand {
    private Integer id;

    @NotBlank(message = "请输入名称")
    @Length(message = "名称的长度必须在 {min} 到 {max} 个字符之间", min = 1, max = 20)
    private String name;

    private Integer isDeleted;
}